/**
 * ******************************************************************************************************
 * @App: dc
 * @author: alisa
 * @module: DashboardModule
 *
 * @descriptions:
 *  首页模块
 *
 * @notice:
 *  若该模块的组件中需使用图表的公共组件时需要导入NgxEchartsModule,不然图表出不来
 *
 * ******************************************************************************************************
 */
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
// Forms module
import {FormsModule} from '@angular/forms';
//echarts
import { NgxEchartsModule } from 'ngx-echarts';

// routes
import { RouterModule } from '@angular/router';
import { dashboardRoutes } from './dashboard.routes';

// components
import { DashboardComponent } from './dashboard.component';
import { PueComponent } from './pue/pue.component';
import { PowerConsumptionComponent } from './power-consumption/power-consumption.component';
import { NotificationsComponent } from './notifications/notifications.component';
import { SharedComponentsModule } from "../shared/components/shared.components.module";


// 使用 bootstrap 中的modal
import { ModalModule } from 'ngx-bootstrap/modal';
// 所有的弹框集合
import { ModalsModule } from "../modals/modals.module";



@NgModule({
  imports: [
    CommonModule,
    NgxEchartsModule,
    RouterModule.forChild(dashboardRoutes),
    SharedComponentsModule,
    ModalModule.forRoot(),
    ModalsModule,
    FormsModule
  ],
  declarations: [DashboardComponent, PueComponent, PowerConsumptionComponent, NotificationsComponent]
})
export class DashboardModule { }
